<?php

namespace CK;

use Illuminate\Support\ServiceProvider;

class ClickHouseServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $db = $this->app->make('db');

        $db->extend('clickhouse', function ($config, $name) {
            return new Connection($config, $name);
        });
    }
}
